﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace upres
{
    class VillageInfo
    {
        private String _ResMap = null;        
        private String _VillageName = null;
        private String _VillageID = null;
        private String _VillageX = null;
        private String _VillageY = null;
        private String _pop = null;
        private String _lumber = null;
        private String _clay = null;
        private String _iron = null;
        private String _crop = null;
        private String _lumberPerHour = null;
        private String _clayPerHour = null;
        private String _ironPerHour = null;
        private String _cropPerHour = null;
        private String _RemainTimeUpgrading = null;
        private int _randomTime ;
        public List<UpgradeTask> ListUpgrade = null;
        private String[] _ResLevel = null;
        private String[] _HouseLevel = null;
        private String[] _HouseUpgrading = null;


        public VillageInfo(String name, String id, String X, String Y, String pop, String lumber, String iron, String crop)
        {
            _VillageName = name;
            _VillageID = id;
            _VillageX = X;
            _VillageY = Y;
            _pop = pop;
            _lumber = lumber;
            _clay = clay;
            _iron = iron;
            _crop = crop;
            ListUpgrade = new List<UpgradeTask>();
        }
        public VillageInfo()
        {
            _VillageName = _VillageID = _VillageX = _VillageY = _pop = _lumber = _clay = _iron = _crop = ""; 
            ListUpgrade = new List<UpgradeTask>();
        }

        public String ResMap
        {
            get
        {
            return _ResMap;
        }
            set
        {
            _ResMap = value;
        }
        }
        public String VillageName
        {
            get
            {
                return _VillageName;
            }
            set
            {
                _VillageName = value;
            }
        }

        public String newdid
        {
            get
            {
                return _VillageID;
            }
            set
            {
                _VillageID = value;
            }
        }

        public String Xcoord
        {
            get
            {
                return _VillageX;
            }
            set
            {
                _VillageX = value;
            }
        }

        public String Ycoord
        {
            get
            {
                return _VillageY;
            }
            set
            {
                _VillageY = value;
            }
        }

        public String population
        {
            get
            {
                return _pop;
            }
            set
            {
                _pop = value;
            }
        }

        public String lumber
        {
            get
            {
                return _lumber;
            }
            set
            {
                _lumber = value;
            }
        }

        public String clay
        {
            get
            {
                return _clay;
            }
            set
            {
                _clay = value;
            }
        }

        public String iron
        {
            get
            {
                return _iron;
            }
            set
            {
                _iron = value;
            }
        }

        public String crop
        {
            get
            {
                return _crop;
            }
            set
            {
                _crop = value;
            }
        }

        public String lumberPerHour
        {
            set
            {
                _lumberPerHour = value;
            }
            get
            {
                return _lumberPerHour;
            }
        }   
        
        public String clayPerHour
        {
            set
            {
                _clayPerHour= value;
            }
            get
            {
                return _clayPerHour;
            }
        }  

        public String ironPerHour
        {
            set
            {
                _ironPerHour = value;
            }
            get
            {
                return _ironPerHour;
            }
        }

        public String cropPerHour
        {
            set
            {
                _cropPerHour = value;
            }
            get
            {
                return _cropPerHour;
            }
        }

        public String RemainTimeUpgrading
        {
            set
            {
                _RemainTimeUpgrading = value;
            }
            get
            {
                return _RemainTimeUpgrading;
            }
        }

        public int randomTime
        {
            set
            {
                _randomTime = value;
            }
            get
            {
                return _randomTime;
            }
        }        

        public String[] resLevel
        {
            get
            {
                return _ResLevel;
            }
            set
            {
                _ResLevel = value;
            }
        }

        public String[] houseLevel
        {
            get
            {
                return _HouseLevel;
            }
            set
            {
                _HouseLevel = value;
            }
        }
        public String[] HouseUpgrading
        {
            get
            {
                return _HouseUpgrading;
            }
            set
            {
                _HouseUpgrading = value;
            }
        }
    }
}
